package com.reesechou.service.imp;

import com.reesechou.dao.CategoryDao;
import com.reesechou.javabean.Category;
import com.reesechou.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 小星打屁屁 on 2015/3/29.
 * contact me ==>243709758@qq.com
 * 文章分类service
 */
@Service
public class CategoryServiceImp implements CategoryService {
    @Autowired
    CategoryDao categoryDao ;
    @Override
    public int save(Category entity) {
        return categoryDao.insert(entity);
    }

    @Override
    public boolean delete(Category entity) {
        return false;
    }

    @Override
    public boolean update(Category entity) {
        return false;
    }

    @Override
    public Category findById(int id) {
        return null;
    }

    @Override
    public List<Category> findAllCategory() {
        return categoryDao.findAllCategory();
    }
}
